package cn.thoughtworks.school.entities;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Embeddable;
import java.io.Serializable;

@Embeddable
@Setter
@Getter
@NoArgsConstructor
public class SurveyQuizChoicesComplexPK implements Serializable {
    private static final long serialVersionUID = 1L;

    @Column(name = "[index]")
    private int index;

    private Long surveyQuizId;


    public SurveyQuizChoicesComplexPK(int index, Long surveyQuizId) {
        this.index = index;
        this.surveyQuizId = surveyQuizId;
    }
}
